{% if customOption.size > 0 %}
  {% for option in customOption %}

    {%- comment -%}
      option.plan_properties_id 如果存在说明为自定义属性
    {%- endcomment -%}
    {%- if option.plan_properties_id > 0 -%}
      <div class="product_custom_option">
        <span>
          {{ option.name }}
          :
        </span>
        {% if option.type == "file" %}
          <a href="{{ option.urls }}" target="_blank" download class="custom-option-download">
            {{ lang.account.orders.property_detail }}
          </a>
          {%- unless option.price == '0' -%}
            <span>
              &nbsp;(
              {%- if option.price > 0 -%}
                +
              {%- else -%}
                -
              {%- endif -%}
              {{ option.price | money }}
              )
            </span>
          {%- endunless -%}
        {% elsif option.type == "image_gallery" %}
            <a href="{{ option.urls }}" target="_blank" download class="custom-option-download">
              {{ option.value }}
            </a>
            {%- unless option.price == '0' -%}
              <span>
                &nbsp;(
                {%- if option.price > 0 -%}
                  +
                {%- else -%}
                  -
                {%- endif -%}
                {{ option.price | money }}
                )
              </span>
            {%- endunless -%}
        {%- elsif option.type == "image_group" -%}
          {%- for el in option.value -%}
            <a href="{{ el.urls }}" target="_blank" download class="custom-option-download">
              {{ el.value }}
            </a>
            {%- unless el.price == '0' -%}
              <span>
                &nbsp;(
                {%- if el.price > 0 -%}
                  +
                {%- else -%}
                  -
                {%- endif -%}
                {{ el.price | money }}
                )
              </span>
            {%- endunless -%}
            {%- unless forloop.last -%}
              ,&nbsp;
            {%- endunless -%}
          {%- endfor -%}

        {%- elsif option.type == "checkbox" or option.type == "block_text" or option.type == "image" -%}
          {%- for el in option.value -%}
            <span>
              {{ el.value }}
              {%- unless el.price == '0' -%}
                &nbsp;(
                {%- if option.price > 0 -%}
                  +
                {%- else -%}
                  -
                {%- endif -%}
                {{ el.price | money }}
                )
              {%- endunless -%}
            </span>
            {%- unless forloop.last -%}
              ,&nbsp;
            {%- endunless -%}
          {%- endfor -%}
        {% else %}
          <span>
            {{ option.value }}
            {%- unless option.price == '0' -%}
              &nbsp;(
              {%- if option.price > 0 -%}
                +
              {%- else -%}
                -
              {%- endif -%}
              {{ option.price | money }}
              )
            {%- endunless -%}
          </span>
        {% endif %}
      </div>
    {%- else -%}
      {%- if option.type == "gift_text" -%}
        <div class="cart-label-warp">
          {{ option.value }}
        </div>
      {%- elsif  option.type == "promotion_timer" and isShowTiem -%}
        <div class="cart-label-timer" style="display: none"></div>
      {%- endif -%}
    {%- endif -%}



  {% endfor %}
{% endif %}
